package com.myapplication.ui.homefragment.shopfragment;

import com.myapplication.bean.Banner;
import com.myapplication.bean.Shop;
import com.myapplication.config.JUrlConfig;
import com.myapplication.http.HttpUtils;

import java.util.Map;

import retrofit2.Callback;

/**
 * Created by zitaojiang on 2016/10/8.
 */
public class Model_Shop implements Contract_Shop.Model {
    @Override
    public void getBanner(Callback<Banner> callback) {
        HttpUtils.getSingletion().getBannerData(JUrlConfig.Path.BANNER_BASEURL,callback);
    }

    @Override
    public void getData(Map<String, String> params, Callback<Shop> callback) {
        HttpUtils.getSingletion().getShopData(JUrlConfig.Path.SHOP_BASEURL,params,callback);
    }
}
